/****************************************
*  This file created using "Writer B"   *
*      a program written by CTonk       *
*          ctonk87@hotmail.com          *
*     [timestamp 02/20/06  12:52:39]    *
****************************************/

// Flag.cpp

#ifndef CPP_FLAG
#define CPP_FLAG

#include "Flag.h"


// Constructors...
Flag::Flag()
{
	_set = false;
	_duration = 0;
	_affect = 0;
}

Flag::Flag( Flag& it )
{
	_set = it._set;
	_duration = it._duration;
	_affect = it._affect;
}

Flag::~Flag()
{
}

// Operators...
Flag& Flag::operator = ( Flag& it )
{
	_set = it._set;
	_duration = it._duration;
	_affect = it._affect;
	return *this;
}

// Public accessor methods...
bool Flag::GetSet()
{
	return _set;
}

void Flag::SetSet( bool set )
{
	_set = set;
}

int Flag::GetDuration()
{
	return _duration;
}

void Flag::SetDuration( int duration )
{
	_duration = duration;
}

int Flag::GetAffect()
{
	return _affect;
}

void Flag::SetAffect( int affect )
{
	_affect = affect;
}

// Other methods...
void Flag::Display( std::ostream& out )
{
	out << "-Flag-";
	out << "\nSet: " << _set;
	out << "\nDuration: " << _duration;
	out << "\nAffect: " << _affect;
	return;
}

void Flag::Display( std::string& out )
{
	out << "-Flag-";
	out << "\nSet: " << _set;
	out << "\nDuration: " << _duration;
	out << "\nAffect: " << _affect;
	return;
}




#endif // #ifndef CPP_FLAG